package com.ridu.project.beshid.service;

import com.ridu.project.beshid.api.GeneralResponse;
import com.ridu.project.beshid.api.User;
import com.ridu.project.beshid.entity.UserEntity;

import java.util.Set;

/**
 * Created by Administrator on 2016/12/30.
 */
public interface UserService {

    GeneralResponse<User> createUser(UserEntity user);

    GeneralResponse<User> changeUser(Long userId, String newPassword,String category, String role);

    GeneralResponse<User> getAllUsers(int currentPage, int pageSize);

    GeneralResponse<String> batchDelStatus(Boolean status, String ids);

    UserEntity findByUsername(String username);

    Set<String> findRoles(String username);


}
